package com.wesley.command;

/**
 * <h1>电灯打开</h1>
 * <p>详述</p>
 *
 * @Date: 2021/8/31
 */
public class LightOnCommand implements Command{


    private LightReceive lightReceive;

    public LightOnCommand(LightReceive lightReceive) {
        this.lightReceive = lightReceive;
    }

    @Override
    public void execute() {
        lightReceive.on();
    }

    @Override
    public void cancel() {
        lightReceive.off();
    }
}
